package com.myfum.mobile.tetris.data.shapes
{
	public class ShapeType
	{
		public static const LLEFT:int = 0;
		public static const LRIGHT:int = 1;
		public static const O:int = 2;
		public static const I:int = 3;
		public static const SLEFT:int = 4;
		public static const SRIGHT:int = 5;
		public static const T:int = 6;
		
		public static function getRandomType():int{
			var arr:Vector.<int> = new Vector.<int>();
			arr.push(LLEFT);
			arr.push(LRIGHT);
			arr.push(O);
			arr.push(I);
			arr.push(SLEFT);
			arr.push(SRIGHT);
			arr.push(T);
			var ran:int = Math.floor(Math.random()*arr.length);
			ran = Math.min(Math.max(0, ran), arr.length - 1);
			return arr[ran];
		}
	}
}